package com.wechat.data.message;

import javax.xml.bind.annotation.XmlElement;

import lombok.Setter;
import lombok.ToString;

@ToString
@Setter
public abstract class Message {
	private String toUserName;

	private String fromUserName;

	private Long createTime;

	private String msgType;

	@XmlElement(name = "ToUserName")
	public String getToUserName() {
		return toUserName;
	}

	@XmlElement(name = "FromUserName")
	public String getFromUserName() {
		return fromUserName;
	}

	@XmlElement(name = "CreateTime")
	public Long getCreateTime() {
		return createTime;
	}

	@XmlElement(name = "MsgType")
	public String getMsgType() {
		return msgType;
	}
}
